Registers a syslog subscriber to receive notifications over Reliable Event Logging Protocol (RELP) from the XCO Notification service.
By default, subscribers do not receive syslog notifications over RELP.
host:port
format. The default port is 514. Syslog server
address can be IPv4 or IPv6.Any external server that is configured with RELP can be registered as a subscriber to XCO notifications. For more information, see "Notification Service" in the ExtremeCloud Orchestrator Administration Guide.
The following example registers 10.x.x.x:20514 as a subscriber for insecure notifications.
$ efa notification subscribers add-syslog-relp --address 10.x.x.x:20514 --insecure Successfully registered subscriber. +-----------+------------------------------------------------+ | attribute | value | +-----------+------------------------------------------------+ | id | 1 | +-----------+------------------------------------------------+ | handler | relp | +-----------+------------------------------------------------+ | endpoint | 10.x.x.x:20514 | +-----------+------------------------------------------------+ | config | {"cacert":"","conn-timeout":10,"insecure":true}| +-----------+------------------------------------------------+ Notification Subscriber ID=1 --- Time Elapsed: 2.399195253s ---
The following example enables rsyslog subscriber with only APP_ALERTS and DEVICE_EVENTS.
#efa notification subscribers add-syslog-relp --address 127.0.0.1:1601 --insecure --filter APP_ALERTS,DEVICE_EVENTS Successfully registered subscriber. +-----------+----------------------------------------------------------------------------------+ | attribute | value | +-----------+----------------------------------------------------------------------------------+ | id | 19 | +-----------+----------------------------------------------------------------------------------+ | handler | relp | +-----------+----------------------------------------------------------------------------------+ | endpoint | 127.0.0.1:1601 | +-----------+----------------------------------------------------------------------------------+ | config | {"cacert":"","conn-timeout":10,"filters":["APP_ALERTS","DEVICE_EVENTS"],"insecur | | | e":true} | +-----------+----------------------------------------------------------------------------------+ Notification Subscriber ID=19 --- Time Elapsed: 2.172557257s ---
The following example enables all notification types on rsyslog subscriber.
#efa notification subscribers add-syslog-relp --address 127.0.0.1:1601 --insecure Successfully registered subscriber. +-----------+--------------------------------------------------------------+ | attribute | value | +-----------+--------------------------------------------------------------+ | id | 20 | +-----------+--------------------------------------------------------------+ | handler | relp | +-----------+--------------------------------------------------------------+ | endpoint | 127.0.0.1:1601 | +-----------+--------------------------------------------------------------+ | config | {"cacert":"","conn-timeout":10,"filters":[],"insecure":true} | +-----------+--------------------------------------------------------------+ Notification Subscriber ID=20 --- Time Elapsed: 2.042797885s ---
The following example enables RFC-5424 format.
#efa notification subscribers add-syslog-relp --address 127.0.0.1:1601 --insecure --rfc5424 Successfully registered subscriber. +-----------+-----------------------------------------------------------------------------+ | attribute | value | +-----------+-----------------------------------------------------------------------------+ | id | 7 | +-----------+-----------------------------------------------------------------------------+ | handler | relp | +-----------+-----------------------------------------------------------------------------+ | endpoint | 134.141.21.190:1601 | +-----------+-----------------------------------------------------------------------------+ | config | {"cacert":"","conn-timeout":10,"filters":[],"insecure":true,"rfc5424":true} | +-----------+-----------------------------------------------------------------------------+ Notification Subscriber ID=7The following example enables rsyslog subscriber with only APP_ALARMS, APP_ALERTS, and DEVICE_EVENTS.
#efa notification subscribers add-syslog-relp --address 127.0.0.1:1601 --insecure --filter APP_ALARMS,APP_ALERTS,DEVICE_EVENTS Successfully registered subscriber. +-----------+----------------------------------------------------------------------------------+ | attribute | value | +-----------+----------------------------------------------------------------------------------+ | id | 19 | +-----------+----------------------------------------------------------------------------------+ | handler | relp | +-----------+----------------------------------------------------------------------------------+ | endpoint | 127.0.0.1:1601 | +-----------+----------------------------------------------------------------------------------+ | config | {"cacert":"","conn-timeout":10,"filters":["APP_ALARMS”,"APP_ALERTS", | | | "DEVICE_EVENTS"], "insecure":true} | +-----------+----------------------------------------------------------------------------------+ Notification Subscriber ID=19 --- Time Elapsed: 2.172557257s ---The following example enables rsyslog subscriber with only notifications of warning or higher of APP_ALERTS and DEVICE_EVENTS, with DEVICE_EVENTS only including audit-security and audit-configuration.
#efa notification subscribers add-syslog-relp --address 127.0.0.1:1601 --insecure --filter APP_ALERTS,DEVICE_EVENTS --device-event audit-security,audit-configuration --minimum-severity warning Successfully registered subscriber. +-----------+----------------------------------------------------------------------------------+ | attribute | value | +-----------+----------------------------------------------------------------------------------+ | id | 19 | +-----------+----------------------------------------------------------------------------------+ | handler | relp | +-----------+----------------------------------------------------------------------------------+ | endpoint | 127.0.0.1:1601 | +-----------+----------------------------------------------------------------------------------+ | config | {"cacert":"","conn-timeout":10,"filters":["APP_ALERTS","DEVICE_EVENTS"], | | | ”device-event”:[”audit-security”,”audit-configuration”], | | } ”minimum-severity”,”warning”,"insecure":true} | +-----------+----------------------------------------------------------------------------------+ Notification Subscriber ID=19 --- Time Elapsed: 2.172557260s ---The following example enables all notification types on rsyslog subscriber of severity error or higher.
#efa notification subscribers add-syslog-relp --address 127.0.0.1:1601 --insecure --minimum-severity error Successfully registered subscriber. +-----------+----------------------------------------------------------------------------------+ | attribute | value | +-----------+----------------------------------------------------------------------------------+ | id | 20 | +-----------+----------------------------------------------------------------------------------+ | handler | relp | +-----------+----------------------------------------------------------------------------------+ | endpoint | 127.0.0.1:1601 | +-----------+----------------------------------------------------------------------------------+ | config | {"cacert":"","conn-timeout":10,"filters":[],”minimum-severity”,”error”, | | | “device-event”:[],"insecure":true} | +-----------+----------------------------------------------------------------------------------+ Notification Subscriber ID=20 --- Time Elapsed: 2.042797881s ---